Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flexibility to index search #158

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kew24
Copy link

@kew24 kew24 commented Apr 6, 2022

Instead of requiring the index to be named prefix.bam/.cram + index extension, this pull request allows for the index to be named prefix + index extension. I've essentially just removed the extension from htsFilePath, and added more options to kPossibleIndexExtensions to account for these differences.

Addresses issue: #98, as some software generates prefix.bai, not prefix.bam.bai.

So far, I've only tested on prefix.bam & prefix.bai, which now works for me. I'm not sure if anything is missing from the list of possible extensions, so feel free to make edits as needed and let me know if you have any comments. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant